home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / TRUSTMON.MO_ / trustmon.mof
Encoding:
Text File  |  2003-02-21  |  3.8 KB  |  141 lines

  1. #pragma namespace("\\root")
  2.  
  3. instance of __NAMESPACE
  4. {
  5.     Name = "MicrosoftActiveDirectory";
  6. };
  7.  
  8. #pragma namespace("MicrosoftActiveDirectory")
  9. // The docs say to declare it as:
  10. //#pragma namespace("\\\\.\\root\\MicrosoftActiveDirectory")
  11. #pragma classflags(64)
  12. #pragma autorecover
  13.  
  14. /////////////////////////////////////////////////////////////////////
  15. // Declare an instance of the __Win32Provider
  16.  
  17. Instance of __Win32Provider as $P
  18. {
  19.     Name  = "TrustPrv" ;
  20.     ClsId = "{8065652F-4C29-4908-AAE5-201C891904C5}" ;
  21.     ImpersonationLevel = 1;
  22.     PerUserInitialization = TRUE;
  23.     HostingModel = "NetworkServiceHost"; // comment this out to compile on Win2k
  24. };
  25.  
  26. instance of __InstanceProviderRegistration
  27. {
  28.     Provider = $P;
  29.     SupportsPut = FALSE;
  30.     SupportsGet = TRUE;
  31.     SupportsDelete = FALSE;
  32.     SupportsEnumeration = TRUE;
  33. };
  34.  
  35.  
  36. /////////////////////////////////////////////////////////////////////
  37. //
  38. // Declare a class whose dynamic instances are provided by the 
  39. // TrustPrv provider.
  40.  
  41. [
  42.     dynamic,
  43.     provider("TrustPrv"),
  44.     description("Instances of this class provide information about the domains that"
  45.                 " have trust with the local domain.")
  46. ]
  47. class Microsoft_DomainTrustStatus
  48. {
  49.     [key]
  50.     String TrustedDomain;
  51.  
  52.     [Description ("Pre-Windows 2000 domain name.")]
  53.     String FlatName;
  54.  
  55.     [Description ("Security Identifier for the domain.")]
  56.     String SID;
  57.  
  58.     [Description ("Direction of trust: 1 is inbound, 2 is outbound,    "
  59.                   "3 is bi-directional.")]
  60.     uint32 TrustDirection;
  61.  
  62.     [Description ("Type of trust: 1 is downlevel, 2 is uplevel, 3 is "
  63.                   "non-Windows Kerberos Realm, 4 is DCE.")]
  64.     uint32 TrustType;
  65.  
  66.     [Description ("Attributes can be a combination of: 1 is non-"
  67.                   "transitive, 2 is uplevel clients only, 40000 is "
  68.                   "tree parent and 80000 is tree root.")]
  69.     uint32 TrustAttributes;
  70.  
  71.     [Description ("Name of trusted domain's domain controller.")]
  72.     String TrustedDCName;
  73.  
  74.     [Description ("Error code of trust failure. Zero means no failure.")]
  75.     uint32 TrustStatus;
  76.  
  77.     [Description ("String description of trust status.")]
  78.     String TrustStatusString;
  79.  
  80.     Boolean TrustIsOk = FALSE;
  81. };
  82.  
  83. [
  84.     singleton,
  85.     description("The properties of this class parameterize the operation of"
  86.                 " the trust monitor.")
  87. ]
  88. class Microsoft_TrustProvider
  89. {
  90.     [Description ("Integer in minutes: if current request for trust enumeration"
  91.                   " within this window, use last listing.")]
  92.     uint32 TrustListLifetime;
  93.  
  94.     [Description ("Integer in minutes: if current request for status within this"
  95.                   " window, use last results.")]
  96.     uint32 TrustStatusLifetime;
  97.  
  98.     [Description ("0 don't verify, just enum; 1 do an SC_QUERY; 2 do a PW check"
  99.                   " (if available); 3 do an SC_RESET.")]
  100.     uint32 TrustCheckLevel;
  101.  
  102.     [Description ("If true, return trusting as well as trusted domains (if different)")]
  103.     Boolean ReturnAll;
  104. };
  105.  
  106. instance of Microsoft_TrustProvider
  107. {
  108.     TrustListLifetime = 20;
  109.  
  110.     TrustStatusLifetime = 3;
  111.  
  112.     TrustCheckLevel = 2;
  113.  
  114.     ReturnAll = TRUE;
  115. };
  116.  
  117. [
  118.     singleton,
  119.     dynamic,
  120.     provider("TrustPrv"),
  121.     description("This class provides information about the domain on which this"
  122.                 " instance of the trust monitor is running.")
  123. ]
  124. class Microsoft_LocalDomainInfo
  125. {
  126.     [description("DNS name of local domain.")]
  127.     String DNSname;
  128.  
  129.     [description("SAM name of local domain.")]
  130.     String FlatName;
  131.  
  132.     [description("Security ID of local domain.")]
  133.     String SID;
  134.  
  135.     [description("Name of enterprise tree root.")]
  136.     String TreeName;
  137.  
  138.     [description("Name of the DC on whom TrustMon is running.")]
  139.     String DCname;
  140. };
  141.